package utils

import (
	"github.com/russross/blackfriday"
	"html/template"
	"labix.org/v2/mgo/bson"
)

func Markdown2Html(markdown string) (html string) {

	return string(blackfriday.MarkdownCommon([]byte(markdown)))
}

func Html(s string) template.HTML {
	return template.HTML(s)
}

func Id2String(id bson.ObjectId) (s string) {
	s = id.Hex()
	return
}
